package com.xwb.exception;

//extends RuntimeException  出现以后不处理 向上抛 不继承的话每个方法都要加上throwe xxx
public class SystemException extends RuntimeException {
    //加上编号 分辨哪个异常
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public SystemException(Integer code, String message ) {
        super(message);
        this.code = code;
    }

    public SystemException(Integer code,String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }


}
